//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package test.集合.Map集合;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.StringJoiner;

public class 省和市 {
    public 省和市() {
    }

    public static void main(String[] args) {
        HashMap<String, List<String>> map = new HashMap();
        ArrayList<String> city1 = new ArrayList();
        Collections.addAll(city1, new String[]{"南京市", "扬州市", "苏州市", "无锡市", "常州市"});
        map.put("江苏省", city1);
        ArrayList<String> city2 = new ArrayList();
        Collections.addAll(city2, new String[]{"武汉市", "孝感市", "土堰市", "宜昌市", "鄂州市"});
        map.put("湖北省", city2);
        ArrayList<String> city3 = new ArrayList();
        Collections.addAll(city3, new String[]{"石家庄市", "唐山市", "邢台市", "保定市", "张家口市"});
        map.put("河北省", city3);

        for(Map.Entry<String, List<String>> entry : map.entrySet()) {
            String key = (String)entry.getKey();
            List<String> list = (List)entry.getValue();
            StringJoiner sj = new StringJoiner(",");

            for(String str : list) {
                sj.add(str);
            }

            System.out.println(key + " = " + sj);
        }

    }
}
